pygrub: Fix command line argument error handling
authorMatthew Daley <mattjd@gmail.com>
Mon, 12 Nov 2012 17:03:21 +0000 (17:03 +0000)
committerMatthew Daley <mattjd@gmail.com>
Mon, 12 Nov 2012 17:03:21 +0000 (17:03 +0000)
commit0c6601ee18c664a8702c142bd901ebc9539ac48d
tree22e3b102c4cbd9cbb9a88a49db71fe296f6bb3a0
parentc61788c33886f8708bf30337b5e460678037cae9
pygrub: Fix command line argument error handling

pygrub's individual config file parsers do not correctly check the
amount of command line arguments given to them. In addition, the LILO
config parser would report an incorrect message.

Use len() to correctly check the amount of arguments, and fix the LILO
error message.

Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/pygrub/src/ExtLinuxConf.py
tools/pygrub/src/GrubConf.py
tools/pygrub/src/LiloConf.py